package com.service;

import com.entity.Book;
import com.github.pagehelper.PageInfo;

public interface BookService {
    //查询全部
    PageInfo<Book> findAllBook(String title,String author, int pageNum);

    //新增数据
    int saveBook(Book book);

    //删除数据
    Integer deleteBook(int id);

    //根据id查找
    Book getBook(int id);

    //更新数据
    void updateBook(Book book);

    Book selectBookById(int id);

}
